package org.millioncall.yueyoga.admin.service.impl;

import java.util.List;
import java.util.Map;

import org.millioncall.yueyoga.admin.dao.MemberClubDAO;
import org.millioncall.yueyoga.admin.model.MemberClub;
import org.millioncall.yueyoga.admin.service.MemberClubService;

public class MemberClubServiceImpl implements MemberClubService {

	private MemberClubDAO memberClubDAO;

	public MemberClubDAO getMemberClubDAO() {
		return memberClubDAO;
	}

	public void setMemberClubDAO(MemberClubDAO memberClubDAO) {
		this.memberClubDAO = memberClubDAO;
	}

	@Override
	public List<MemberClub> findLiftClubId(Integer id) {
		List<MemberClub> liftClubId = null;
		liftClubId = memberClubDAO.findLiftClubId(id);
		return liftClubId;
	}

	@Override
	public boolean saveMemberLiftClub(Map<String, Object> map) {
		int i = memberClubDAO.saveMemberLiftClub(map);
		if (i > 0) {
			return true;
		} else {
			return false;
		}
	}

	@Override
	public List<MemberClub> findMemberLiftClubById(Map<String, Object> model) {
		List<MemberClub> memberClub = null;
		memberClub = this.memberClubDAO.findMemberLiftClubById(model);
		return memberClub;
	}
}
